package models

import "time"

type LeaveWordTwo struct {
	Id        int64      `json:"id" orm:"pk;auto"`
	Name      string     `json:"name"`
	Email     string     `json:"email"`
	Photo     string     `json:"photo"`
	Homepage  string     `json:"homepage"`
	Word      string     `json:"word" orm:"type(text);size(1000)'"`
	Reply     string     `json:"reply"`
	Time      time.Time  `json:"time"`
	Pass      int8       `json:"pass"`
	IsAuthor  int8       `json:"is_author"`
	LeaveWord *LeaveWord `json:"leave_word" orm:"rel(fk)"`
}

func (l *LeaveWordTwo) TableName() string {
	return TableName("leave_word_two")
}
